package jwcb.admin.server.user.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jwcb.javapjframework.common.core.enums.UserIdentity;
import jwcb.javapjframework.common.core.enums.UserStatus;
import jwcb.javapjframework.common.security.annotation.ValueIn;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SysUserEditDto {

    /**
     * B端用户Id
     */
    @NotNull(message = "用户Id不能为空")
    private Long userId;


    /**
     * 用户身份
     */
    @ValueIn(enumClass = UserIdentity.class,message = "用户身份不合法")
    @NotNull(message = "用户身份不能为空")
    private Integer identity;

    /**
     * 密码
     */
    private String password;


    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空")
    private String nickName;


    /**
     * 状态
     */
    @ValueIn(enumClass = UserStatus.class,message = "用户状态不合法")
    @NotNull(message = "状态不能为空")
    private Integer status;

    /**
     * 备注
     */
    private String remark;
}
